package com.demo.BeanFactoryPostProcessor.pojo;

import org.springframework.stereotype.Component;

@Component
public class Monkey {
    private String name = "wpz";
    private int age = 30;

    public void setName(String name) {
        this.name = name;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Monkey(){
        System.out.println("monkey 无参构造！！！");
    }

    @Override
    public String toString() {
        return "Monkey{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
